package com.xxxx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.pojo.Admin;
import com.xxxx.server.pojo.AdminRole;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2020-08-17
 */
public interface IAdminRoleService extends IService<AdminRole> {

    // 查询所有admin
    List<Admin> initAllRoles(String name);

    // 逻辑删除admin
    Integer updateAdmin(Integer id);

    // 更新用户角色
    void updateAdminRole(Integer adminId, String rids);
}
